package com.work.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@TableName(value = "disease_info")
@Data
public class DiseaseBean implements Serializable {
    @TableId(type = IdType.AUTO)
    private int diseaseId; //编号
    @TableField("disease_name")
    private String diseaseName; //名称
    @TableField("disease_pathogeny")
    private String diseasePathogeny;//病原
    @TableField("disease_symptom")
    private String diseaseSymptom; //发病症状
    @TableField("disease_law")
    private String diseaseLaw;//发病规律
    @TableField("disease_harm")
    private String diseaseHarm;//主要危害
    @TableField("disease_pic")
    private String diseasePic; //图片路径
    @TableField("disease_prevention")
    private String diseasePrevention;//防治措施

    public DiseaseBean() {
    }

    public DiseaseBean(String diseaseName, String diseasePathogeny, String diseaseSymptom, String diseaseLaw, String diseaseHarm, String diseasePic, String diseasePrevention) {
        this.diseaseName = diseaseName;
        this.diseasePathogeny = diseasePathogeny;
        this.diseaseSymptom = diseaseSymptom;
        this.diseaseLaw = diseaseLaw;
        this.diseaseHarm = diseaseHarm;
        this.diseasePic = diseasePic;
        this.diseasePrevention = diseasePrevention;
    }
}
